{$CLEO .cm}

  $onmission = 2 
{
   sssss

}   
 

 const
  playeR_car = 0@
  asset_marker = 1@ 
  1_ASSET_WAYPOINT = 1000@ 
  1_ASSET_TARGET_MARKER = 1001@ 
  0_BODYGUARD_1 = 105@
  0_BODYGUARD_2 = 106@
 end

model.Load(#BIKDRUG)
model.Load(#VLA1)
model.Load(#VLA1)
model.Load(#VLA2)
model.Load(#VLA3)
model.Load(#ARMY)
model.Load(#SFR1)
model.Load(#SFR2)
model.Load(#SFR3)
model.Load(#SWAT)
model.Load(#TRIADA)
model.Load(#TRIADb)
model.Load(#TRIBOSS)
model.Load(#YANKEE)
model.Load(#YOSEMITE)
model.Load(#FAGGIO)
model.Load(#LSV1)
model.Load(#LSV2)
model.Load(#LSV3)
model.Load(#TEC9)
model.Load(#COLT45)
model.Load(#AK47)
model.Load(#SNIPER)
model.Load(#SHOTGSPA)
model.Load(#DESERT_EAGLE)
model.Load(#CHROMEGUN)
model.Load(#SAWNOFF)
model.Load(#SNIPER)
038B: load_requested_models
actor.PutAt($player_actor, 4892.4946, -2607.8101, 10.4754)
actor.Angle($player_actor)=308.918
            playeR_car=car.Create(#YOSEMITE , 4900.5566, -2596.0496, 10.4754)
            car.Angle(playeR_car)=0.9186  
            car.Health(playeR_car)=8000
            09C4: set_car playeR_car gas_tank_explosion_enabled 0
          marker.CreateAboveCar(asset_marker, playeR_car)
          07E0: set_marker asset_marker type_to 1

0746: set_acquaintance 4 of_actors_pedtype 7 to_actors_pedtype 0
0746: set_acquaintance 4 of_actors_pedtype 7 to_actors_pedtype 1
while true 
wait 0 
gosub @FAIL
   if actor.InCar(  $player_actor ,playeR_car)
   then
       marker.Disable(asset_marker)
       
       0167: 1_ASSET_WAYPOINT  = create_marker_at  5023.1167 -2425.7437 10.4754 color 4 flag 2
       marker.SetIconSize(1_ASSET_WAYPOINT, 3)
       40@=actor.Create(gang1, #LSV1 ,5003.5234, -2420.7834, 11.447 )
       actor.Angle(40@)=274.0439 
       41@=actor.Create(gang1, #LSV2 , 5040.6885, -2407.2893, 11.447)
       actor.Angle(41@)= 92.4218
       42@=actor.Create(gang1, #LSV3  ,5024.8154, -2441.7659, 11.447 )
       actor.Angle(42@)= 2.3755
       43@=actor.Create(gang1, #LSV3 , 4987.6606, -2454.0337, 11.447)
       actor.Angle(43@)=291.6457 
       44@=actor.Create(gang1, #LSV2 ,5005.0605, -2459.416, 10.4788 )
       actor.Angle(44@)= 49.2305
       45@=actor.Create(gang1, #LSV2 , 5008.5166, -2402.3652, 11.447)
       actor.Angle(45@)= 198.0217
       46@=actor.Create(gang1, #LSV1 , 5008.8076, -2442.1331, 10.4754)
       actor.Angle(46@)=319.0219 
       47@=actor.Create(gang1, #BIKDRUG , 5010.4146, -2461.3623, 10.4788)
       actor.Angle(47@)= 109.1579
       marker.CreateAboveActor(1_ASSET_TARGET_MARKER ,47@ )
       018B: set_marker 1_ASSET_TARGET_MARKER radar_mode 3

       //32@ 33@ 
       actor.GiveWeaponAndAmmo(40@, tec9,99999)
       actor.GiveWeaponAndAmmo(41@, ak47,99999)
       actor.GiveWeaponAndAmmo(42@, tec9,99999)
       actor.GiveWeaponAndAmmo(43@, ak47,99999)
       actor.GiveWeaponAndAmmo(44@, tec9,99999)
       actor.GiveWeaponAndAmmo(45@, pistol,99999)
       actor.GiveWeaponAndAmmo(46@, pistol,99999) 
       actor.GiveWeaponAndAmmo(47@, ak47,99999) 
       0446: set_actor 47@ dismemberment_possible 0
       actor.Health(47@) = 300 
       0ACD: show_text_highpriority "Drive to the ~y~destination." time 4000

       repeat
       wait 0 
       gosub @FAIL
       until 0103:   actor $PLAYER_ACTOR in_sphere  5023.1167 -2425.7437 10.4754 radius 8.0 8.0 6.0 sphere 1 stopped_in_car
         CLEAR_WAYPOINT()
            0ACD: show_text_highpriority "Search the ~r~drug dealer~w~, he's hiding somewhere." time 4000
            repeat  
            wait 0 
            gosub @FAIL
            until actor.Dead(47@)
                 marker.Disable(1_ASSET_TARGET_MARKER)
                 actor.RemoveReferences(40@)
                 actor.RemoveReferences(41@)
                 actor.RemoveReferences(42@)
                 actor.RemoveReferences(43@)
                 actor.RemoveReferences(44@)
                 actor.RemoveReferences(45@)
                 actor.RemoveReferences(46@)
                 actor.RemoveReferences(47@)
                 CLEAR_WAYPOINT()
                 0167: 1_ASSET_WAYPOINT  = create_marker_at  4744.8071 -2259.4927 11.2223 color 4 flag 2
                 marker.SetIconSize(1_ASSET_WAYPOINT, 3)
                        0ACD: show_text_highpriority "Drive to the next ~y~destination." time 4000
                    while true  
                    wait 0 
                    gosub @FAIL
                            if  and
                            0103:   actor $PLAYER_ACTOR in_sphere  4744.8071 -2259.4927 11.2223 radius 100.0 100.0 25.0 sphere 0 stopped_in_car
                            actor.InCar($player_actor, playeR_car)
                            
                            then
                              0ACD: show_text_highpriority "Search another ~r~drug dealer~w~, he's hiding somewhere." time 4000

                               CLEAR_WAYPOINT()
                                   40@=actor.Create(gang1, #SFR1 ,4728.5039, -2247.3628, 14.3818 )
                                   actor.Angle(40@)=  88.7766                            
                                    41@=actor.Create(gang1, #SFR2 , 4741.6543, -2227.4619, 10.4754)
                                   actor.Angle(41@)= 115.7765                             
                                    42@=actor.Create(gang1, #SFR3 , 4770.2417, -2254.4802, 10.4754)
                                   actor.Angle(42@)=  97.7753                            
                                    43@=actor.Create(gang1, #SFR3 , 4771.1826, -2268.436, 29.3942)
                                   actor.Angle(43@)=  149.7749                            
                                    44@=actor.Create(gang1, #SFR2 ,4722.7871, -2303.2085, 26.412 )
                                   actor.Angle(44@)=  285.1415    
                                   0638: AS_actor 44@ stay_put 1
                        
                                    45@=actor.Create(gang1, #SFR2 , 4771.3662, -2295.7231, 10.4754)
                                   actor.Angle(45@)= 249.1415                             
                                    46@=actor.Create(gang1, #SFR1 ,4800.3091, -2316.4111, 15.8234 )
                                   actor.Angle(46@)=  3.2643           
                                    0638: AS_actor 46@ stay_put 1                 
                                     47@=actor.Create(gang1, #SFR2 , 4799.9971, -2255.7781, 18.9878)
                                   actor.Angle(47@)= 177.6297                             
                                     48@=actor.Create(gang1, #SFR3 ,4778.4272, -2237.2988, 17.0577 )
                                   actor.Angle(48@)=  139.7286                            
                                     49@=actor.Create(gang1, #SFR1 ,4796.0894, -2225.4526, 10.4754 )
                                   actor.Angle(49@)=175.0218                              
                                     50@=actor.Create(gang1, #SFR2 ,4768.9458, -2262.8479, 11.7301 )
                                   actor.Angle(50@)=  290.9304                            
                                      51@=actor.Create(gang1, #SFR3 ,4759.0908, -2215.2483, 19.5327 )
                                   actor.Angle(51@)= 203.6063   
                                     0638: AS_actor 51@ stay_put 1                             
                                      52@=actor.Create(gang1, #BIKDRUG , 4796.6763, -2227.083, 40.3152)
                                   actor.Angle(52@)=  198.2103                            
                                    0638: AS_actor 52@ stay_put 1 
                                    04EB: AS_actor 52@ crouch 1

                                actor.GiveWeaponAndAmmo(40@, ak47,99999)                           
                                actor.GiveWeaponAndAmmo(41@, tec9,99999)                           
                                actor.GiveWeaponAndAmmo(42@, tec9,99999)                           
                                actor.GiveWeaponAndAmmo(43@, mp5,99999)                           
                                actor.GiveWeaponAndAmmo(44@, SniperRifle,99999)                           
                                actor.GiveWeaponAndAmmo(45@, ak47,99999)                           
                                actor.GiveWeaponAndAmmo(46@, SniperRifle,99999)                           
                                actor.GiveWeaponAndAmmo(47@, ak47,99999)                           
                                actor.GiveWeaponAndAmmo(48@, SniperRifle,99999)                           
                                actor.GiveWeaponAndAmmo(49@, mp5,99999)                           
                                actor.GiveWeaponAndAmmo(50@, ak47,99999)                           
                                actor.GiveWeaponAndAmmo(51@, SniperRifle,99999)                           
                                actor.GiveWeaponAndAmmo(52@, SniperRifle,99999)     
                                actor.Health(52@)=450      
                                0446: set_actor 52@ dismemberment_possible 0
                               marker.CreateAboveActor(1_ASSET_TARGET_MARKER ,52@ )
                               018B: set_marker 1_ASSET_TARGET_MARKER radar_mode 3                 
                               repeat 
                               wait 0 
                               FAIL()
                               
                               until  actor.Dead(52@ )
                                    0ACD: show_text_highpriority "Drive to the last ~y~destination." time 4000
                                    marker.Disable(1_ASSET_TARGET_MARKER)
                                     actor.RemoveReferences(40@)
                                     actor.RemoveReferences(41@)
                                     actor.RemoveReferences(42@)
                                     actor.RemoveReferences(43@)
                                     actor.RemoveReferences(44@)
                                     actor.RemoveReferences(45@)
                                     actor.RemoveReferences(46@)
                                     actor.RemoveReferences(47@)                                    
                                     actor.RemoveReferences(48@)                                    
                                     actor.RemoveReferences(49@)                                    
                                     actor.RemoveReferences(50@)                                    
                                     actor.RemoveReferences(51@)                                    
                                     actor.RemoveReferences(52@)     
                                     0167: 1_ASSET_WAYPOINT  = create_marker_at  4440.687 -1927.9805 10.4754 color 4 flag 2
                                     marker.SetIconSize(1_ASSET_WAYPOINT, 3) 
                                     while true 
                                     wait 0 
                                        if  and
                                        0103:   actor $PLAYER_ACTOR in_sphere  4744.8071 -2259.4927 11.2223 radius 50.0 50.0 25.0 sphere 1 stopped_in_car
                                         actor.InCar(  $player_actor ,playeR_car)
                                        then
                                                 0ACD: show_text_highpriority "Search another ~r~drug dealer~w~, he's hiding somewhere." time 4000
                                            CLEAR_WAYPOINT()
                                           40@=actor.Create(gang1, #VLA1  , 4433.2017, -1883.4119, 13.3807 )
                                           actor.Angle(40@)= 189.4305  
                                            41@=actor.Create(gang1, #VLA2  , 4440.2783, -1920.1692, 10.4754 )
                                           actor.Angle(41@)= 258.0526  
                                            42@=actor.Create(gang1, #VLA3  , 4440.6445, -1884.8828, 10.4754 )
                                           actor.Angle(42@)= 259.0528  
                                            43@=actor.Create(gang1, #VLA1  , 4429.1543, -1879.9714, 10.5235 )
                                           actor.Angle(43@)=156.3864   
                                            44@=actor.Create(gang1, #VLA2  , 4427.2104, -1912.8967, 10.5235 )
                                           actor.Angle(44@)= 216.3863  
                                            45@=actor.Create(gang1, #VLA3  ,4448.7642, -1896.2654, 12.2385  )
                                           actor.Angle(45@)=  112.4063 
                                            46@=actor.Create(gang1, #VLA2  ,  4439.2485, -1887.5304, 12.9409)
                                           actor.Angle(46@)=174.4057   
                                            47@=actor.Create(gang1, #BIKDRUG  , 4441.8267, -1948.6238, 10.5235 )
                                           actor.Angle(47@)= 37.7442  
                                                     
                
                                                actor.GiveWeaponAndAmmo(40@, ak47,99999)                           
                                                actor.GiveWeaponAndAmmo(41@, sawnoff,99999)                           
                                                actor.GiveWeaponAndAmmo(42@, shotgun,99999)                           
                                                actor.GiveWeaponAndAmmo(43@, mp5,99999)                           
                                                actor.GiveWeaponAndAmmo(44@, shotgun,99999)                           
                                                actor.GiveWeaponAndAmmo(45@, ak47,99999)                           
                                                actor.GiveWeaponAndAmmo(46@, mp5,99999)                           
                                                actor.GiveWeaponAndAmmo(47@, ak47,99999)             
                                                actor.Health(47@)=450      
                                                0446: set_actor 47@ dismemberment_possible 0
                                               marker.CreateAboveActor(1_ASSET_TARGET_MARKER ,47@ )
                                               018B: set_marker 1_ASSET_TARGET_MARKER radar_mode 3    
                                               repeat 
                                               wait 0 
                                               FAIL()
                                               until  actor.Dead(47@)       
                                                         actor.RemoveReferences(40@)
                                                         actor.RemoveReferences(41@)
                                                         actor.RemoveReferences(42@)
                                                         actor.RemoveReferences(43@)
                                                         actor.RemoveReferences(44@)
                                                         actor.RemoveReferences(45@)
                                                         actor.RemoveReferences(46@)
                                                         actor.RemoveReferences(47@)   
                                                         marker.Disable(1_ASSET_TARGET_MARKER)     
                                                          0ACD: show_text_highpriority "~y~Execellent!" time 4000
                                                break                          
                                        end 
                                     
                                     end                               
                            end 
                    end   
                    
                    
                    
   end
end

jump @END 

:FAIL
if or 
wasted_or_busted
car.Wrecked(playeR_car)
then
 0ACD: show_text_highpriority "~r~SHIT! Bike is destroyed!" time 4000

jump @END 
end 


return

:CREATE_WAYPOINT


return 

:CLEAR_WAYPOINT
if 075C:   marker 1_ASSET_WAYPOINT enabled
then
   marker.Disable(1_ASSET_WAYPOINT)
end 

return 

:end 
 CLEAR_WAYPOINT()
 $onmission = 0  
mission_cleanup
end_thread
